package com.py.credit.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.Model;
import com.py.framework.core.common.Page;

public interface TemplateService {

	List<Model> getListForPage(String sortType, Page page);

	public List<Map<String, Object>> getByConditionForPage(List<String> showColumns, String[] additionalColumns,
			String condition, Page page);

	public Map<String, Object> selectOne(@Param(value = "id") String id);

	public int insert(@Param(value = "name") String name, @Param(value = "mainType") String mainType,
			@Param(value = "url") String url, @Param(value = "cjr") String cjr);

	public int update(@Param(value = "name") String name, @Param(value = "mainType") String mainType,
			@Param(value = "url") String url, @Param(value = "id") String id);

	public int del(List<String> ids);

	public int setStatus(@Param(value = "id") String id, @Param(value = "status") String status);

	public List<Map<String, Object>> listForSelect();

}
